#ifndef MONSTERQUERY_H
#define MONSTERQUERY_H

#include <QWidget>
#include"monster.h"
#include<QKeyEvent>
#include"hero.h"

class monsterQuery : public QWidget
{
    Q_OBJECT
public:
    explicit monsterQuery(QWidget *parent = nullptr);
    monsterQuery(monster m[][11],hero h);
    void paintEvent(QPaintEvent *);
    void keyPressEvent(QKeyEvent *event);
    bool judge(QVector<int>& p,int num);
    int hurt(hero h,monster m);

    monster monsters[11][11];
    hero heros;

signals:

public slots:
};

#endif // MONSTERQUERY_H
